package edu.kjxy.day02.suspend_resume_LockStop;

/**
 * 功能:suspend和resume方法的缺点--独占
 * 作者:程序员欧阳子韩
 * 日期:2024/2/1 12:30
 */
public class RunTest {
    public static void main(String[] args) {
        try {
            MyThread thread = new MyThread();
            thread.start();
            Thread.sleep(1000);
            thread.suspend();
            System.out.println("main end");
        }catch (InterruptedException e){
            e.printStackTrace();
        }
    }
}
